package com.webauto.pojo;

/**
 * PS:用例pojo类
 * @author lkk
 *
 */
public class Case {
	//测试编号
	private String testNum;
	//用例编号
	private String caseNum;
	//用例名称
	private String caseName;
	//用例类型
	private String caseType;
	//测试数据
	private String testData;
	//检查点
	private String checkPoint;
	//预期结果
	private String expectedResult;
	//实际结果
	private String actualResult;
	
	public String getTestNum() {
		return testNum;
	}
	public void setTestNum(String testNum) {
		this.testNum = testNum;
	}
	public String getCaseNum() {
		return caseNum;
	}
	public void setCaseNum(String caseNum) {
		this.caseNum = caseNum;
	}
	public String getCaseName() {
		return caseName;
	}
	public void setCaseName(String caseName) {
		this.caseName = caseName;
	}
	public String getCaseType() {
		return caseType;
	}
	public void setCaseType(String caseType) {
		this.caseType = caseType;
	}
	public String getTestData() {
		return testData;
	}
	public void setTestData(String testData) {
		this.testData = testData;
	}
	public String getCheckPoint() {
		return checkPoint;
	}
	public void setCheckPoint(String checkPoint) {
		this.checkPoint = checkPoint;
	}
	public String getExpectedResult() {
		return expectedResult;
	}
	public void setExpectedResult(String expectedResult) {
		this.expectedResult = expectedResult;
	}
	public String getActualResult() {
		return actualResult;
	}
	public void setActualResult(String actualResult) {
		this.actualResult = actualResult;
	}
	@Override
	public String toString() {
		return "Case [testNum=" + testNum + ", caseNum=" + caseNum + ", caseName=" + caseName + ", caseType=" + caseType
				+ ", testData=" + testData + ", checkPoint=" + checkPoint + ", expectedResult=" + expectedResult
				+ ", actualResult=" + actualResult + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((actualResult == null) ? 0 : actualResult.hashCode());
		result = prime * result + ((caseName == null) ? 0 : caseName.hashCode());
		result = prime * result + ((caseNum == null) ? 0 : caseNum.hashCode());
		result = prime * result + ((caseType == null) ? 0 : caseType.hashCode());
		result = prime * result + ((checkPoint == null) ? 0 : checkPoint.hashCode());
		result = prime * result + ((expectedResult == null) ? 0 : expectedResult.hashCode());
		result = prime * result + ((testData == null) ? 0 : testData.hashCode());
		result = prime * result + ((testNum == null) ? 0 : testNum.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Case other = (Case) obj;
		if (actualResult == null) {
			if (other.actualResult != null)
				return false;
		} else if (!actualResult.equals(other.actualResult))
			return false;
		if (caseName == null) {
			if (other.caseName != null)
				return false;
		} else if (!caseName.equals(other.caseName))
			return false;
		if (caseNum == null) {
			if (other.caseNum != null)
				return false;
		} else if (!caseNum.equals(other.caseNum))
			return false;
		if (caseType == null) {
			if (other.caseType != null)
				return false;
		} else if (!caseType.equals(other.caseType))
			return false;
		if (checkPoint == null) {
			if (other.checkPoint != null)
				return false;
		} else if (!checkPoint.equals(other.checkPoint))
			return false;
		if (expectedResult == null) {
			if (other.expectedResult != null)
				return false;
		} else if (!expectedResult.equals(other.expectedResult))
			return false;
		if (testData == null) {
			if (other.testData != null)
				return false;
		} else if (!testData.equals(other.testData))
			return false;
		if (testNum == null) {
			if (other.testNum != null)
				return false;
		} else if (!testNum.equals(other.testNum))
			return false;
		return true;
	}
	
	
	
}
